<template>
  <div class="favorites-page">
     <van-nav-bar title="收藏列表" @click-left="$router.back()" left-text="" left-arrow/>
      <HouseList
        v-for="item in list"
        :key="item.id"
        :item="item"
      ></HouseList>
  </div>
</template>

<script>
import { houseList } from '@/api/house'
export default {
  name: 'favorites-page',
  data () {
    return {
      list: []
    }
  },
  async created () {
    const { body } = await houseList()
    console.log(body)
    this.list = body
  },
  methods: {

  }
}
</script>

<style lang="less" scoped>

</style>
